<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--</div>-->
<div id="app1">
    <!--对数组for循环，index是数组下标-->
    <li v-for="(item,index) in items">
            {{item.message}}:{{index}}

    </li>

</div>

<!--导入Vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>

    var ifa=  new Vue({
        // 元素
        el:"#app1",
        data:{
            // 定义一个数组
            items:[{message:"刘恒"},{message:"通研2202"},{message:"图像处理"}]
        }
    });
</script>
</body>
</html>
